
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

platform :ios do
  desc "Push a new release build to the App Store"
  lane :ainkjj do
    increment_build_number(xcodeproj: "ainkjj.xcodeproj")
    build_app(workspace: "ainkjj.xcworkspace", scheme: "ainkjj")


outputDir = "~/Desktop/ipa"

outputName = "ainkjj"
gym(
scheme: "ainkjj",
workspace: "ainkjj.xcworkspace", 
configuration: "Release",
output_directory: outputDir,
output_name: outputName,
include_bitcode: true,
include_symbols: true,
codesigning_identity: ENV["CODESIGNING_IDENTITY_TO_FIRIM"],
silent: true,
export_options: {
method: "ad-hoc",
thinning: "<none>"
}
)
  pgyer(api_key: "ffbeadbb1a61925b92d061ef9a5d5efc", user_key: "3331d5166c8927c0b1778bea1987f951")

  end
end
